global with sharing class Webserviceclass
    {
    

    global class WSdetails{ 
      
        webservice String name{get;set;}
        webservice String wstext{get;set;}
    }
        webservice static void Createwsdetails(WSdetails[] details)
        
            {
            system.debug('@@Details'+details);
            
            List<Webservicerecieve__c> wstest=new list<Webservicerecieve__c>();
            
            for(WSdetails sdetails: details)
            
                {
                    Webservicerecieve__c wtest=new Webservicerecieve__c();
                    wtest.Name=sdetails.name;
                    wtest.WStext__c=sdetails.wstext;
                    
                    wstest.add(wtest);
                
                }
            
            system.debug('**toinsertlist '+wstest);
                insert wstest;
            }
        
    
    }